<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/base.css">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <div class="container">
        <div class="header"></div>
        <div class="content">
            <div class="banner">
                <img src="images/white.png" alt="">
            </div>
            <div class="window">
                <div class="qrcode">
                    <img src="images/qrcode.png" alt="">
                    <span class="ad">
                        <h4>XX课堂-手机APP</h4>
                        <p>扫一扫下载<br>随时随地，想学就学</p>
                    </span>
                </div>
                <div class="tab">
                    <div class="tab-header">
                        <div class="chat-header current">讨论</div>
                        <div class="menber-header">成员</div>
                    </div>
                    <div class="tab-content">
                        <div class="chat"></div>
                        <div class="member"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(".tab-header div").click(function(){
            $(this).addClass("current").siblings().removeClass("current");
            var index = $(this).index();
            console.log(index);
            $(".tab-content>div").eq(index).show().siblings().hide();
        })
    </script>
</body>
</html>